package com.ruoyi.project.order.in.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 入住退房登记对象 check_in
 * 
 * @author yyj
 * @date 2021-05-13
 */
public class CheckIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入住id */
    private Long checkInId;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long orderId;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNumber;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 入住时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInTime;

    /** 退房时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退房时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkoutOutTime;

    public void setCheckInId(Long checkInId)
    {
        this.checkInId = checkInId;
    }

    public Long getCheckInId()
    {
        return checkInId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setRoomNumber(String roomNumber)
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber()
    {
        return roomNumber;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCheckInTime(Date checkInTime)
    {
        this.checkInTime = checkInTime;
    }

    public Date getCheckInTime()
    {
        return checkInTime;
    }
    public void setCheckoutOutTime(Date checkoutOutTime)
    {
        this.checkoutOutTime = checkoutOutTime;
    }

    public Date getCheckoutOutTime()
    {
        return checkoutOutTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("checkInId", getCheckInId())
            .append("orderId", getOrderId())
            .append("roomNumber", getRoomNumber())
            .append("userId", getUserId())
            .append("checkInTime", getCheckInTime())
            .append("checkoutOutTime", getCheckoutOutTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
